package com.jeebey.mybatis.annotation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/** 主键生成 */
@Target({ METHOD, FIELD })
@Retention(RUNTIME)
public @interface GeneratedValue {

	GeneratedStrategy strategy() default GeneratedStrategy.IDENTITY;

	GeneratedPosition position() default GeneratedPosition.BEFORE;

	Class<?> referType();

	String generator() default "";
}
